package com.tust.bean;

public class Teacher {
    private int tid; // 教师工号
    private String tname; // 教师名
    private int tage; // 教师年龄
    private String tprofession; // 教师职业
    private int isDelete; // 是否删除

    public Teacher() {
    }

    public Teacher(int tid, String tname) {
        this.tid = tid;
        this.tname = tname;
    }

    public Teacher(int tid, String tname, int tage) {
        this.tid = tid;
        this.tname = tname;
        this.tage = tage;
    }

    public Teacher(int tid, String tname, int tage, String tprofession) {
        this.tid = tid;
        this.tname = tname;
        this.tage = tage;
        this.tprofession = tprofession;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public int getTage() {
        return tage;
    }

    public void setTage(int tage) {
        this.tage = tage;
    }

    public String getTprofession() {
        return tprofession;
    }

    public void setTprofession(String tprofession) {
        this.tprofession = tprofession;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", tage=" + tage +
                ", tprofession='" + tprofession + '\'' +
                '}';
    }
}
